Integrand size = 26, antiderivative size = 103 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=-\frac {b^3 (3 b d-4 a e) x}{e^4}+\frac {b^4 x^2}{2 e^3}-\frac {(b d-a e)^4}{2 e^5 (d+e x)^2}+\frac {4 b (b d-a e)^3}{e^5 (d+e x)}+\frac {6 b^2 (b d-a e)^2 \log (d+e x)}{e^5} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {27, 45} \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=-\frac {b^3 x (3 b d-4 a e)}{e^4}+\frac {6 b^2 (b d-a e)^2 \log (d+e x)}{e^5}+\frac {4 b (b d-a e)^3}{e^5 (d+e x)}-\frac {(b d-a e)^4}{2 e^5 (d+e x)^2}+\frac {b^4 x^2}{2 e^3} \]
[In]
[Out]
Rule 27
Rule 45
Rubi steps \begin{align*} \text {integral}& = \int \frac {(a+b x)^4}{(d+e x)^3} \, dx \\ & = \int \left (-\frac {b^3 (3 b d-4 a e)}{e^4}+\frac {b^4 x}{e^3}+\frac {(-b d+a e)^4}{e^4 (d+e x)^3}-\frac {4 b (b d-a e)^3}{e^4 (d+e x)^2}+\frac {6 b^2 (b d-a e)^2}{e^4 (d+e x)}\right ) \, dx \\ & = -\frac {b^3 (3 b d-4 a e) x}{e^4}+\frac {b^4 x^2}{2 e^3}-\frac {(b d-a e)^4}{2 e^5 (d+e x)^2}+\frac {4 b (b d-a e)^3}{e^5 (d+e x)}+\frac {6 b^2 (b d-a e)^2 \log (d+e x)}{e^5} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 167, normalized size of antiderivative = 1.62 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=\frac {-a^4 e^4-4 a^3 b e^3 (d+2 e x)+6 a^2 b^2 d e^2 (3 d+4 e x)+4 a b^3 e \left (-5 d^3-4 d^2 e x+4 d e^2 x^2+2 e^3 x^3\right )+b^4 \left (7 d^4+2 d^3 e x-11 d^2 e^2 x^2-4 d e^3 x^3+e^4 x^4\right )+12 b^2 (b d-a e)^2 (d+e x)^2 \log (d+e x)}{2 e^5 (d+e x)^2} \]
[In]
[Out]
Time = 2.23 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.67
method | result | size |
default | \(\frac {b^{3} \left (\frac {1}{2} b e \,x^{2}+4 a e x -3 b d x \right )}{e^{4}}-\frac {4 b \left (a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}\right )}{e^{5} \left (e x +d \right )}-\frac {e^{4} a^{4}-4 b \,e^{3} d \,a^{3}+6 b^{2} e^{2} d^{2} a^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}}{2 e^{5} \left (e x +d \right )^{2}}+\frac {6 b^{2} \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right ) \ln \left (e x +d \right )}{e^{5}}\) | \(172\) |
norman | \(\frac {-\frac {e^{4} a^{4}+4 b \,e^{3} d \,a^{3}-18 b^{2} e^{2} d^{2} a^{2}+36 a \,b^{3} d^{3} e -18 b^{4} d^{4}}{2 e^{5}}+\frac {b^{4} x^{4}}{2 e}-\frac {2 \left (2 a^{3} b \,e^{3}-6 a^{2} b^{2} d \,e^{2}+12 d^{2} e a \,b^{3}-6 b^{4} d^{3}\right ) x}{e^{4}}+\frac {2 b^{3} \left (2 a e -b d \right ) x^{3}}{e^{2}}}{\left (e x +d \right )^{2}}+\frac {6 b^{2} \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right ) \ln \left (e x +d \right )}{e^{5}}\) | \(178\) |
risch | \(\frac {b^{4} x^{2}}{2 e^{3}}+\frac {4 b^{3} a x}{e^{3}}-\frac {3 b^{4} d x}{e^{4}}+\frac {\left (-4 a^{3} b \,e^{3}+12 a^{2} b^{2} d \,e^{2}-12 d^{2} e a \,b^{3}+4 b^{4} d^{3}\right ) x -\frac {e^{4} a^{4}+4 b \,e^{3} d \,a^{3}-18 b^{2} e^{2} d^{2} a^{2}+20 a \,b^{3} d^{3} e -7 b^{4} d^{4}}{2 e}}{e^{4} \left (e x +d \right )^{2}}+\frac {6 b^{2} \ln \left (e x +d \right ) a^{2}}{e^{3}}-\frac {12 b^{3} \ln \left (e x +d \right ) a d}{e^{4}}+\frac {6 b^{4} \ln \left (e x +d \right ) d^{2}}{e^{5}}\) | \(192\) |
parallelrisch | \(\frac {b^{4} x^{4} e^{4}+12 \ln \left (e x +d \right ) x^{2} a^{2} b^{2} e^{4}-24 \ln \left (e x +d \right ) x^{2} a \,b^{3} d \,e^{3}+12 \ln \left (e x +d \right ) x^{2} b^{4} d^{2} e^{2}+8 x^{3} a \,b^{3} e^{4}-4 x^{3} b^{4} d \,e^{3}+24 \ln \left (e x +d \right ) x \,a^{2} b^{2} d \,e^{3}-48 \ln \left (e x +d \right ) x a \,b^{3} d^{2} e^{2}+24 \ln \left (e x +d \right ) x \,b^{4} d^{3} e +12 \ln \left (e x +d \right ) a^{2} b^{2} d^{2} e^{2}-24 \ln \left (e x +d \right ) a \,b^{3} d^{3} e +12 \ln \left (e x +d \right ) b^{4} d^{4}-8 x \,a^{3} b \,e^{4}+24 x \,a^{2} b^{2} d \,e^{3}-48 x a \,b^{3} d^{2} e^{2}+24 x \,b^{4} d^{3} e -e^{4} a^{4}-4 b \,e^{3} d \,a^{3}+18 b^{2} e^{2} d^{2} a^{2}-36 a \,b^{3} d^{3} e +18 b^{4} d^{4}}{2 e^{5} \left (e x +d \right )^{2}}\) | \(307\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 291 vs. \(2 (99) = 198\).
Time = 0.28 (sec) , antiderivative size = 291, normalized size of antiderivative = 2.83 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=\frac {b^{4} e^{4} x^{4} + 7 \, b^{4} d^{4} - 20 \, a b^{3} d^{3} e + 18 \, a^{2} b^{2} d^{2} e^{2} - 4 \, a^{3} b d e^{3} - a^{4} e^{4} - 4 \, {\left (b^{4} d e^{3} - 2 \, a b^{3} e^{4}\right )} x^{3} - {\left (11 \, b^{4} d^{2} e^{2} - 16 \, a b^{3} d e^{3}\right )} x^{2} + 2 \, {\left (b^{4} d^{3} e - 8 \, a b^{3} d^{2} e^{2} + 12 \, a^{2} b^{2} d e^{3} - 4 \, a^{3} b e^{4}\right )} x + 12 \, {\left (b^{4} d^{4} - 2 \, a b^{3} d^{3} e + a^{2} b^{2} d^{2} e^{2} + {\left (b^{4} d^{2} e^{2} - 2 \, a b^{3} d e^{3} + a^{2} b^{2} e^{4}\right )} x^{2} + 2 \, {\left (b^{4} d^{3} e - 2 \, a b^{3} d^{2} e^{2} + a^{2} b^{2} d e^{3}\right )} x\right )} \log \left (e x + d\right )}{2 \, {\left (e^{7} x^{2} + 2 \, d e^{6} x + d^{2} e^{5}\right )}} \]
[In]
[Out]
Time = 0.67 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.80 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=\frac {b^{4} x^{2}}{2 e^{3}} + \frac {6 b^{2} \left (a e - b d\right )^{2} \log {\left (d + e x \right )}}{e^{5}} + x \left (\frac {4 a b^{3}}{e^{3}} - \frac {3 b^{4} d}{e^{4}}\right ) + \frac {- a^{4} e^{4} - 4 a^{3} b d e^{3} + 18 a^{2} b^{2} d^{2} e^{2} - 20 a b^{3} d^{3} e + 7 b^{4} d^{4} + x \left (- 8 a^{3} b e^{4} + 24 a^{2} b^{2} d e^{3} - 24 a b^{3} d^{2} e^{2} + 8 b^{4} d^{3} e\right )}{2 d^{2} e^{5} + 4 d e^{6} x + 2 e^{7} x^{2}} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.85 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=\frac {7 \, b^{4} d^{4} - 20 \, a b^{3} d^{3} e + 18 \, a^{2} b^{2} d^{2} e^{2} - 4 \, a^{3} b d e^{3} - a^{4} e^{4} + 8 \, {\left (b^{4} d^{3} e - 3 \, a b^{3} d^{2} e^{2} + 3 \, a^{2} b^{2} d e^{3} - a^{3} b e^{4}\right )} x}{2 \, {\left (e^{7} x^{2} + 2 \, d e^{6} x + d^{2} e^{5}\right )}} + \frac {b^{4} e x^{2} - 2 \, {\left (3 \, b^{4} d - 4 \, a b^{3} e\right )} x}{2 \, e^{4}} + \frac {6 \, {\left (b^{4} d^{2} - 2 \, a b^{3} d e + a^{2} b^{2} e^{2}\right )} \log \left (e x + d\right )}{e^{5}} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.78 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=\frac {6 \, {\left (b^{4} d^{2} - 2 \, a b^{3} d e + a^{2} b^{2} e^{2}\right )} \log \left ({\left | e x + d \right |}\right )}{e^{5}} + \frac {b^{4} e^{3} x^{2} - 6 \, b^{4} d e^{2} x + 8 \, a b^{3} e^{3} x}{2 \, e^{6}} + \frac {7 \, b^{4} d^{4} - 20 \, a b^{3} d^{3} e + 18 \, a^{2} b^{2} d^{2} e^{2} - 4 \, a^{3} b d e^{3} - a^{4} e^{4} + 8 \, {\left (b^{4} d^{3} e - 3 \, a b^{3} d^{2} e^{2} + 3 \, a^{2} b^{2} d e^{3} - a^{3} b e^{4}\right )} x}{2 \, {\left (e x + d\right )}^{2} e^{5}} \]
[In]
[Out]
Time = 0.09 (sec) , antiderivative size = 196, normalized size of antiderivative = 1.90 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^2}{(d+e x)^3} \, dx=x\,\left (\frac {4\,a\,b^3}{e^3}-\frac {3\,b^4\,d}{e^4}\right )-\frac {\frac {a^4\,e^4+4\,a^3\,b\,d\,e^3-18\,a^2\,b^2\,d^2\,e^2+20\,a\,b^3\,d^3\,e-7\,b^4\,d^4}{2\,e}-x\,\left (-4\,a^3\,b\,e^3+12\,a^2\,b^2\,d\,e^2-12\,a\,b^3\,d^2\,e+4\,b^4\,d^3\right )}{d^2\,e^4+2\,d\,e^5\,x+e^6\,x^2}+\frac {b^4\,x^2}{2\,e^3}+\frac {\ln \left (d+e\,x\right )\,\left (6\,a^2\,b^2\,e^2-12\,a\,b^3\,d\,e+6\,b^4\,d^2\right )}{e^5} \]
[In]
[Out]